package org.csu.mypetstoreplus.vo;

import lombok.Data;
import org.csu.mypetstoreplus.entity.Order;
import org.csu.mypetstoreplus.entity.OrderStatus;

@Data
public class MyOrderVO {
    private int orderId;
    private String orderDate;
    private String status;
    private String totalPrice;

    public MyOrderVO(Order order, OrderStatus orderStatus) {
        this.orderId = order.getOrderId();
        this.orderDate = order.getOrderDate();
        this.status = orderStatus.getStatus();
        this.totalPrice = order.getTotalPrice();
    }
}
